package com.bolovan.infovaluta.reader;

import com.bolovan.infovaluta.bean.ExchangeRateSeller;

public class ReaderFactory {

	public static ExchangeReader getReader(ExchangeRateSeller seller) {
		switch (seller) {
		case BCE:
			return new BceReader(seller);
		case BNR:
			return new BnrReader(seller);
		case BCR:
			return new BcrReader(seller);
		case BRD:
			return new BrdReader(seller);
		case BT:
			return new BtReader(seller);
		case ING:
			return new IngReader(seller);
		case RAIFFEISEN:
			return new RaiffeisenReader(seller);
		}
		return null;
	}
}
